#pragma warning(disable:4996)
#include<stdio.h>
#include<stdlib.h>
int Comper(const void*p1,const void* p2 )
{
	int x = *(const int*)p1;
	int y = *(const int*)p2;
	if (x > y)
		return -1;
	else if (x < y)
		return 1;
	else
		return 0;
}
void My_Print(int arr[], int sz)
{
	for (int i = 0; i < sz; i++)
		printf("%d ", arr[i]);
}
int main()
{
	int arr[10] = { 1,2,3,4,5,6,7,8,9,10 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	My_Print(arr, sz);
	qsort(arr, sz, sizeof(int), Comper);
	printf("\n");
	My_Print(arr, sz);
	return 0;
}